
<div class="row">
    <div class="col-md-12">
        <div class="grid simple">
            <div class="grid-title no-border">
                <h4 class="semi-bold">上传结果</h4>
            </div>
            <div class="grid-body no-border">
                <div class="row-fluid">  
                    <? if($result): ?>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>商品编码</th>
                                    <? for($i=1; $i<=$max_img; $i++): ?>
                                        <th>图片<?= $i ?></th>
                                    <? endfor ?>
                                </tr>
                            </thead>
                            <tbody>
                                <? foreach($result as $goods_sn => $r) : ?>
                                <tr>
                                    <td>
                                        <? if($r['folder'] === TRUE): ?>
                                            <?= $goods_sn ?>
                                        <? else: ?>
                                            <i class="icon-remove-sign text-error" ></i>
                                            <span class="text-error"><?= $goods_sn ?></span>
                                        <? endif ?>
                                    </td>
                                    <? for($i=1; $i<=$max_img; $i++): ?>
                                        <td>
                                            <? if($r["pic{$i}"] === TRUE): ?>
                                                <?= goods_img($goods_sn, $i, 'small', $goods_sn) ?>
                                            <? else: ?>
                                                    <i class="icon-remove-sign text-error"></i>
                                                    <span class="text-error"><?= $r["pic{$i}"] ?></span>
                                            <? endif ?>
                                        </td>
                                    <? endfor ?>
                                </tr>
                                <? endforeach ?>
                            </tbody>
                        </table>
                    <? endif ?>
                    <hr>
                    <a class="btn btn-primary btn-cons" href="<?= DOMAIN ?>goods_img/index">
                        <i class="icon-double-angle-right"></i>&nbsp;&nbsp;继续上传
                    </a>
                </div>
            </div>
        </div>
    </div>
</div>